package com.lichuandi.controller;

import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.ArrayList;
import java.util.List;

@RestController
@CrossOrigin
public class HelloController {
    @GetMapping("/hello")
    public  List<String> hello(){
        List<String> list = new ArrayList<>();
       // return "Hello , This is you first SpringBoot Web Project !";
        list.add("A");
        list.add("B");
        list.add("C");
        list.add("D");

        return list;

    }
}
